<?php
$id = 777;
if (isset($_GET['id'] )){
$id=$_GET['id']; //we getting the id from the other php file
}
echo $id+2;
?>